<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>输出100以内的所有质数</title>
    <script>
        for (var n = 2; n <= 100; n++) {
            for (var m = 2; m <= n - 1; m++) {
                if (n % m == 0) {
                    break
                }
            }
            if (m == n) {
                document.write(m + '、')
            }
        }
    </script>
</head>

<body>

</body>

</html>